package com.atguigu.service.impl;

import com.atguigu.bean.idBean;
import com.atguigu.entity.SkuView;
import com.atguigu.mapper.SkuViewMapper;
import com.atguigu.service.SkuViewService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yangchaolove
 * @since 2022-03-04
 */
@Service
public class SkuViewServiceImpl extends ServiceImpl<SkuViewMapper, SkuView> implements SkuViewService {

    @Override
    public Date mostStartDate() {
        return baseMapper.mostStartDate();
    }

    @Override
    public List<idBean> types() {
        return baseMapper.types();
    }

    @Override
    public Long find(Long id, String date) {
      return baseMapper.find(id, date);
    }

    @Override
    public Long sumViewData(Long projectId) {
        return baseMapper.sumViewData(projectId);
    }

    @Override
    public Long sumViewDataNotoday(Long projectId, String format) {
        return baseMapper.sumViewDataNotoday(projectId, format);
    }


}
